package com.wesley.factory.abstractFactory;

/**
 * @author:wesley
 */
public class Testmain2 {

    public static void main(String[] args){

        AbstractFactory f = new DefaultFactory2();
        Food food = f.createFood();
        food.printName();

        Vehicle vehicle = f.createVehicle();
        vehicle.run();

        Weapon weapon = f.createWeapon();
        weapon.shoot();



    }

}
